package com.luu.game.controller;

import com.luu.game.data.entity.UserElfEntity;
import com.luu.game.service.UserElfService;
import com.luu.game.utils.TestDemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/userelf")
public class UserElfController {

    @Autowired
    private UserElfService userElfService;


    @GetMapping("/test")
    public void test(){
        final List<UserElfEntity> all = userElfService.findAll();
        final TestDemo testDemo = new TestDemo();
        testDemo.init();
    }

}
